package me.zhengjie.minbearwcs.dao.rework.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.rework.inf.ReworkOrderDao;
import me.zhengjie.minbearwcs.entity.Mapper.rework.ReworkOrderMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.ReworkOrder;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ReworkOrderDaoImpl implements ReworkOrderDao {

    private final ReworkOrderMapper mapper;

    @Override
    public boolean insert(ReworkOrder reworkOrder) {
        return mapper.insert(reworkOrder) == 1;
    }
}
